import {defineConfig} from 'vite'
import vue from '@vitejs/plugin-vue'
import electron from 'vite-plugin-electron'
import vueJsx from '@vitejs/plugin-vue-jsx'

import path from "path";

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    vue(),
    electron({
      // 主进程入口文件
      entry: 'electron_main.js'
    }),
    vueJsx()
  ],
  /*开发服务器选项*/
  server: {
    // 端口
    port: 30000,
  },
  base: "./",
  resolve: {
    alias: {
      "@": path.resolve(__dirname, "./src"),
    },
  },
})
